SpiralDrillShapePattern SpiralDrillShapePattern

Creates the Spiral drill shape pattern

Overloads

public SpiralDrillShapePattern() 
public SpiralDrillShapePattern(float innerRadius, float outerRadius, float pitch, float innerRotations, float outerRotations, bool clockwise, bool outwards, bool returnToStart, float angle, LaserParameters laserParameters)

 

Parameters

float innerRadius The inner radius of the spiral.
float outerRadius The outer radius of the spiral.
float pitch The pitch of the spiral
float innerRotations The inner rotations of the spiral.
float outerRotations The outer rotations of the spiral.
float angle The starting angle of the spiral
bool clockwise The rotation direction of the spiral
bool outwards The laser beam travel direction
bool returnToStart Repeat the process backwards
LaserParameters laserParameters  

 

Example

Copy
DistanceUnit drillUnits = DistanceUnit.Millimeters;


scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), drillUnits, false);

if (scanDocument != null)
{
    VectorImage vectorImage = GetNewVectorImage();

    int markdelayInUsec = 200;
    int polydelayInUsec = 75;
    int JumpDelay = 10;
    int JumpSpeed = 10;
    int LaserOnDelay = 5;
    int LaserOffDelay = 5;

    vectorImage.SetJumpDelay(JumpDelay);
    vectorImage.SetMarkDelay(markdelayInUsec);
    vectorImage.SetPolyDelay(polydelayInUsec);
    vectorImage.SetJumpSpeed(JumpSpeed);

    //Set Laser Delays
    vectorImage.SetLaserOnDelay(LaserOnDelay);
    vectorImage.SetLaserOffDelay(LaserOffDelay);


    SpiralDrillShapePattern spiralDrilPat = new SpiralDrillShapePattern();
    spiralDrilPat.Clockwise = true;
    spiralDrilPat.Angle = 0;
    spiralDrilPat.InnerRadius = 5;
    spiralDrilPat.InnerRotations = 2;
    spiralDrilPat.OuterRadius = 10;
    spiralDrilPat.OuterRotations = 2;
    spiralDrilPat.Outwards = false;
    spiralDrilPat.Pitch = 1;
    spiralDrilPat.ReturnToStart = false;

    //Create a drill shape.
    DrillShape drillShape = new DrillShape();
    drillShape.SetPattern(spiralDrilPat);

    //Add spiral Points to the drill shape
    drillShape.AddSpiralPoint(0, 0, 0);
    drillShape.AddSpiralPoint(10, 10, 0);
    drillShape.AddSpiralPoint(20, 20, 0);


    // Add the Drill shape to vector image
    vectorImage.AddDrill(drillShape);


    scanDocument.Scripts.Add(DefautScript());

    try
    {
        scanDocument.StartScanning();
    }
    catch
    {

    }

}